-
Notifications
You must be signed in to change notification settings - Fork 38.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
always allow decoding of status when returned from the API #35810
always allow decoding of status when returned from the API #35810
Conversation
Jenkins GCI GKE smoke e2e failed for commit ba46a0bfa907604b232a3595884ecfcccc9d0d6e. Full PR test history. The magic incantation to run this job again is |
Test |
ba46a0b
to
29171ec
Compare
Jenkins GKE smoke e2e failed for commit 29171ec171065ca86a3d878ce8b7f24d9cb06fb5. Full PR test history. The magic incantation to run this job again is |
Add a test please. |
Without a cut-down API server done in an openshift |
You can test rest client against a semi real server in apiserver_test.go, which has an almost real server |
29171ec
to
5563fad
Compare
unit test added. |
Jenkins GCE Node e2e failed for commit 5563fad162e29ce929a7cb873d38bc7e66d2fb70. Full PR test history. The magic incantation to run this job again is |
5563fad
to
8115d18
Compare
Jenkins verification failed for commit 8115d18eb16670e42202f3a049b61f0aafc2137f. Full PR test history. The magic incantation to run this job again is |
8115d18
to
235678d
Compare
Jenkins unit/integration failed for commit 235678d. Full PR test history. The magic incantation to run this job again is |
Jenkins GCI GCE e2e failed for commit 235678d. Full PR test history. The magic incantation to run this job again is |
@k8s-bot unit test this flake already fixed in head. |
Automatic merge from submit-queue |
unversioned.Status
should be able to come back from any API version and still be properly decoded. This doesn't happen today by default.@smarterclayton Our projectrequest endpoint returns a
Status
object on a 200 return from list to indicate everything went well. This (or something like it) is needed to make the API accepted bykubectl
. Alternatively, we change the API to return a different (still not aProject
) value from list, which still feels wrong.This change is